﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class _课堂练习2日期验证 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RangeValidator1.ForeColor = System.Drawing.Color.Red;
            RangeValidator1.ErrorMessage = "输入的日期必须在2011-2020年之间";
            RangeValidator1.MaximumValue = "2020-12-31";
            RangeValidator1.MinimumValue = "2011-01-01";
            //RangeValidator1.Type = Date;


        }
    }
}